package com.czf.personal.service;

import com.czf.common.entity.UserBaseInfo;
import com.czf.common.mapper.UserBaseInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zfChen
 * @create 2022/4/20 14:52
 */
@Service
public class UserBaseInfoServiceImpl {

    @Autowired
    private UserBaseInfoMapper userBaseInfoMapper;

    public int insert(UserBaseInfo userBaseInfo){
        int insert = userBaseInfoMapper.insert(userBaseInfo);
        return insert;
    }

    public int update(UserBaseInfo userBaseInfo){
        int i = userBaseInfoMapper.updateById(userBaseInfo);
        return i;
    }

    public UserBaseInfo select(Long userId){
        UserBaseInfo userBaseInfo = userBaseInfoMapper.selectById(userId);
        return userBaseInfo;
    }
}
